package com.example.myapp61.Util;

import android.database.Cursor;
import android.util.Log;

import com.example.myapp61.xiaoye.top.ClassBase;

import java.util.ArrayList;
import java.util.List;

public class getClassUtil {
//    static public List getclass(int num){
//        List<ClassBase> list = new ArrayList<>();
//        db = insertDB.getReadableDatabase();
//        Cursor cursor =  db.query("class",null,"id==?",new String[]{"2"},null,null,null);
//        if (cursor.moveToNext()){
//            do {
//                int id = cursor.getInt(cursor.getColumnIndex("id"));
//                int week = cursor.getInt(cursor.getColumnIndex("week"));
//                String name = cursor.getString(cursor.getColumnIndex("name"));
//                String site = cursor.getString(cursor.getColumnIndex("site"));
//                list.add(new ClassBase(id,week,name,site));
//                Log.d(TAG, "setRecyclerView: "+list.size());
//            }while (cursor.moveToNext());
//        }
//        return list;
//    }
}
